<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/pub/includ.jsp"%>
<%@ include file="/pub/tree_common.jsp"%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</HEAD>
<BODY topmargin="0" leftmargin="0">
<table  height="100%" width="100%">
   <tr>
    <td valign="top">
    <div id="treeObject" ></div>
    </td>
   </tr>
</table> 
<script>   
    tree=new dhtmlXTreeObject('treeObject',"100%","100%",0); 
    tree.setOnClickHandler(doOnClick); 
    tree.setImagePath("<%=xtreePath%>"); 
    tree.enableDragAndDrop(false);   
    tree.setXMLAutoLoading("<%=path%>/ext/productgroup/showTree");
    tree.loadXML("<%=path%>/ext/productgroup/showTree",function(){
    	parent.document.getElementById("checkedIds").value=tree.getSelectedItemId()+"$"+tree.getSelectedItemText();
    });
    function doOnClick(nodeId){
		parent.document.getElementById("checkedIds").value=nodeId+"$"+tree.getItemText(nodeId);
	}
	
</script> 
</body>
</html>
